import { baseUrl, doRequestPost, doRequestDel, doRequestPut, doRequestGet } from '@/utils/request'

export function getTableData() {
  return doRequestGet(baseUrl + 'recommend/tjbl/list', {})
}

export function getDhyList() {
  return doRequestGet(baseUrl + 'recommend/dhy/list', {})
}

export function getManageList() {
  return doRequestGet(baseUrl + 'recommend/manage/list', {})
}

export function getGgList() {
  return doRequestGet(baseUrl + 'cms/notice/tag/all', {})
}

export function postDhyList(query) {
  return doRequestPost(baseUrl + 'recommend/dhy/save' + '?time=' + (+new Date()), query)
}

export function updateTjblList(query) {
  return doRequestPost(baseUrl + 'recommend/tjbl/update' + '?time=' + (+new Date()), query)
}

export function saveManageList(query) {
  return doRequestPost(baseUrl + 'recommend/manage/save' + '?time=' + (+new Date()), query)
}

export function uerRpageList(query) {
  return doRequestPost(baseUrl + 'recommend/recommendResultForUser/pageList' + '?time=' + (+new Date()), query)
}